//
//  USAlbumStyleCell.m
//  us
//
//  Created by karry on 2025/4/26.
//

#import "USAlbumStyleCell.h"

@implementation USAlbumStyleCell

-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self initialization];
    }
    return self;
}

-(void)initialization{
    
    [self imgView];
    
}

- (void)setSelected:(BOOL)selected{
    [super setSelected:selected];
    
    if (selected) {
        self.imgView.layer.borderColor = [UIColor jk_colorWithHex:0x6FB5FF].CGColor;
    }else {
        self.imgView.layer.borderColor = UIColor.borderColor.CGColor;
    }
}

-(UIImageView *)imgView{
    if (!_imgView) {
        _imgView = [[UIImageView alloc]init];
        [self.contentView addSubview:_imgView];
        _imgView.layer.masksToBounds = YES;
        _imgView.layer.cornerRadius = 10;
        _imgView.layer.borderWidth = 3;
        _imgView.layer.borderColor = UIColor.borderColor.CGColor;
        [_imgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(0);
        }];
    }
    return _imgView;
}

@end
